package com.xyrl.project.common.store.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xyrl.project.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
* @className StoreImage.java
* @company 重庆星纭融链科技公司
* @author 徐恩源
* @version 1.0
* @date 2020-01-05 16:46:10
* @Description 店铺认证图片实体类
*/
@Data
@NoArgsConstructor
@TableName("t_store_image")
@ApiModel(value="StoreImage对象", description="店铺认证图片")
public class StoreImage extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户id")
    private Long storeId;
    @ApiModelProperty(value = "附件id")
    private Long AttId;

    @ApiModelProperty(value = "照片路径")
    @Length(min = 1, max =200, message = "照片路径必须在{min}~{max}字符之间")
    private String imageUrl;

    @ApiModelProperty(value = "图片类型")
    @Length(min = 1, max =255, message = "图片类型必须在{min}~{max}字符之间")
    private String type;

    @ApiModelProperty(value = "小类型")
    private String minType;

    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

}
